package com.dyw.mybatisplus05mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Devil
 * @create 2022-01-22-19:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "people",autoResultMap = true)
public class Person {
    @TableId(
            value = "pid",
            type = IdType.ASSIGN_ID
    )

    @TableField(value = "pid")
    private String id;

    private String peopleName;
}
